package com.ruoyi.business.mapper;

import com.ruoyi.business.domain.Settlement;

import java.util.List;

/**
 * 结算Mapper接口
 * 
 * @author xx
 * @date 2020-04-03
 */
public interface SettlementMapper {
    /**
     * 查询结算
     * 
     * @param id 结算ID
     * @return 结算
     */
     Settlement selectSettlementById(Long id);

    /**
     * 查询结算列表
     * 
     * @param settlement 结算
     * @return 结算集合
     */
    List<Settlement> selectSettlementList(Settlement settlement);

    /**
     * 新增结算
     * 
     * @param settlement 结算
     * @return 结果
     */
    int insertSettlement(Settlement settlement);

    /**
     * 修改结算
     * 
     * @param settlement 结算
     * @return 结果
     */
    int updateSettlement(Settlement settlement);

    /**
     * 删除结算
     * 
     * @param id 结算ID
     * @return 结果
     */
    int deleteSettlementById(Long id);

    /**
     * 批量删除结算
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteSettlementByIds(String[] ids);
}
